package com.bdqn.enums;

import com.bdqn.enums.impl.IMExceptionEnum;

/**
 * @author 忍
 * @title: ApiResponseEnum
 * @projectName Teaching
 * @description: TODO
 * @date 2019/5/2110:53
 */
public enum ApiResponseEnum implements IMExceptionEnum {
    DATABASE_EXCEPTION("2000","数据库连接异常"),
    MONITOR_EXCEPTION("2001","文件监控异常"),
    AUTH_ERROR("4001","未授权");

    public String code;
    public String message;

    ApiResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}